import { Route } from 'react-router-dom';
import loadable from '@loadable/component';
import React from 'react';

export const routes = [
  {
    path: '/index', // 首页
    component: loadable(() => import('@/App.jsx')),
    children: [
      {
        path: '/index/home', // 首页
        component: loadable(() => import('@/pages/home/Home.jsx')),
      },
      {
        path: '/index/takeATaxi', // 打车
        component: loadable(() => import('@/pages/takeATaxi/TakeATaxi.jsx')),
        children: [],
      },
      {
        path: '/index/me', // 我的
        component: loadable(() => import('@/pages/me/Me.jsx')),
      },
    ],
  },
  {
    path: '/threeTest', // 我的
    component: loadable(() => import('@/pages/threeTest/Index.jsx')),
  },
  {
    path: '/richText',
    component: loadable(() => import('@/pages/richText/RichText.jsx')),
  },
];
